/**
* @description: 周赛314 t2
* @author hewei
* @date 2022/10/9 10:44
* @version 1.0
*/

public class FindArray {

    public int[] findArray(int[] pref) {
        int n = pref.length;
        int[] ans = new int[n];
        ans[0] = pref[0];
        for (int i = 1; i < n; i++) {
            ans[i] = pref[i - 1] ^ pref[i];
        }
        return ans;
    }
}
